Run an agent locally on Cloud9 and clone the ThirdPartyReferenceAgent

If you did not complete the Request and download SDK files procedure, please do so then return to this procedure.

  1. Cloud9 opens.

    You can see DistributedIntelligenceSDK.tgz in the left pane.

  2. Open a new terminal.

  3. Confirm that you are in the SDK directory using the command

    Copy
    ls
  4. Unzip the .tgz file using the command

    Copy
    tar zxvf <file name>

    ...where <file name> is the .tgz file name. In this example, it is DistributedIntelligenceSDK.tgz.

  5. Go inside the DistributedIntelligenceSDK directory using the command

    Copy
    cd DistributedIntelligenceSDK
  6. Change your directory to Packages using the command

    Copy
    cd Packages
  7. Create the database in the environment using the command

    Copy
    sudo ./setupenvironment.sh
  8. Go inside the Agent directory using the command

    Copy
    cd Agent
  9. To clone a new agent, use the command:

    Copy
    ./Clone_ThirdPartyReferenceAgent.sh <agent name> <description> <agent ID> <overlay ID> <Feature ID> <SDK Version>

    ...where <agent name> is the name of your new agent.

    ...and where <description> is a description for your new agent.

    ...and where <overlay ID> is the reference agent's overlay ID.

    ...and where <feature ID> is the reference agent's feature ID.

    ...and where <SDK version> is the version of the SDK where the Third Party Reference Agent is.

    In our example, the command looks like this:

    ./Clone_ThirdPartyReferenceAgent.sh MyNewAgent "MyNewAgent" 23050000 23020000 23030000 SDK1

  10. Confirm your build environment using the command

    Copy
    sudo ./setup_v2_build_environment.sh TargetRelease
    sudo ./host_build.sh
    sudo ./pack.sh
  11. Continue to the next procedure, Install emu-tool and create a simulated meter.